#!/bin/bash

if [ $DATABASE == "rethinkdb" ]; then
    ../../build/release/rethinkdb create $SSD_DRIVES_1 --force
    ./dbench                                                                                      \
        -d "$BENCH_DIR/bench_output/Number_of_SSD_64MB_cache_canonical_workload/1" -H $SERVER_HOSTS    \
        {server}rethinkdb:"-c 12 -m 64 $SSD_DRIVES_1"                                            \
        {client}stress[$STRESS_CLIENT]:"-c $CANONICAL_CLIENTS -d $CANONICAL_DURATION" \
        iostat:1 vmstat:1 rdbstat:1
else
    echo "No workload configuration for $DATABASE"
fi

